var layerId;
$(function(){
	$("#addTopic-button").click(function(){
		layerId=layer.open({
			title: "新增组货场景",
			area: ['40%','40%'],
			fix:true,
			type: 2,
			content: basePath+'/groupStyle/add.shtml'
		});
	})
})
function editFun(styleId){
	layerId=layer.open({
		title: "修改组货 场景",
		area: ['40%','40%'],
		fix:true,
		type: 2,
		content: basePath+'/groupStyle/edit.shtml?styleId='+styleId
	});
}
function deleteFun(styleId){
	if(confirm("确认删除？")){
		 $.ajax({
	  		 url:basePath+"/groupStyle/delete.shtml?styleId="+styleId,  
	  		 type:"post",
	  		 dataType:"JSON",
	  		 success:ajaxSuccessRefreshFun
	  	 });
	}
}
